﻿
window.knockoutSampleForm = window.knockoutSampleForm || (function (app) {

    app.Form = function (first, last) {

        var self = this;

        self.firstName = ko.observable(first);
        self.lastName = ko.observable(last);

        self.fullName = ko.computed(function () {
            return this.firstName() + " " + this.lastName();
        }, self);
    };

    return app;

})({});

SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs("spdevlab.ko.form.demo.js");